package com.anne.fish.service.img;

import java.util.List;

public class ImageParameter {
	
	
 
	
	
	
	
	private String name ;
	private String password;
	private String ip;
	private String port;
	private String path;
	private String imageRemotePath;
	
	private String defaultLocalPath = "";
	private String contextPath ;
	private boolean used;
	
	/**
	 * 图片保存在应用内部时，需要的应用的路径 http://localhost:8080/xxx/ 
	 * @see HttpServletRequest.getContextPath()
	 * @return
	 */
	public String getContextPath() {
		return contextPath;
	}
	public void setContextPath(String contextPath) {
		this.contextPath = contextPath;
	}
	public String getDefaultLocalPath() {
		return defaultLocalPath;
	}
	public void setDefaultLocalPath(String defaultLocalPath) {
		this.defaultLocalPath = defaultLocalPath;
	}


	
	
	/**
	 * 使用使用FTP
	 */
	public boolean isUsed() {
		return used;
	}
	public void setUsed(boolean used) {
		this.used = used;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getPort() {
		return port;
	}
	public void setPort(String port) {
		this.port = port;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getImageRemotePath() {
		return imageRemotePath;
	}
	public void setImageRemotePath(String imageRemotePath) {
		this.imageRemotePath = imageRemotePath;
	}
	
	
	public static ImageParameter createFtpParameter( ){
		ImageParameter para = new ImageParameter();
		
 
		
		return para;
	}
 
}
